module V1
  module Users
    extend ActiveSupport::Concern
    included do
      resource :users do
        post '/' do
          user = User.new(params[:user])
          if user.save
            {ok: true}
          else
            error!(user.errors, 400)
          end
        end
      end
    end
  end
end

